/* 天气容器样式 */
.weather-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  overflow: hidden;

  /* 城市名称样式 */
  .city-name {
    font-size: 2rem;
    color: #1890ff;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e6f7ff;
    padding-bottom: 0.5rem;
    letter-spacing: 0.03em;
  }

  /* 实时天气样式 */
  .real-time-weather {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;

    .realtime-card {
      background-color: #f5faff;
      border-radius: 10px;
      padding: 1.5rem;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;

      &:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
      }

      .realtime-label {
        font-size: 1.2rem;
        color: #66b1ff;
        margin-bottom: 0.5rem;
        letter-spacing: 0.02em;
      }

      .realtime-info {
        font-size: 1.8rem;
        color: #1890ff;
        font-weight: 500;
        line-height: 1.4;

        .condition-temp {
          display: flex;
          justify-content: center;
          align-items: center;

          .high-temp {
            color: #ff4d4f;
            margin-right: 0.5rem;
          }

          .low-temp {
            color: #000;
          }
        }
      }
    }
  }

  /* 预报天气样式 */
  .forecast-weather {
    .forecast-label {
      font-size: 1.5rem;
      color: #1890ff;
      margin-bottom: 1rem;
      letter-spacing: 0.03em;
    }

    .forecast-date {
      color: #66b1ff;
      font-size: 0.9rem;
      margin-bottom: 1.5rem;
    }

    .forecast-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      padding: 0;
      margin-top: 30px;

      .forecast-card {
        background-color: #f5faff;
        border-radius: 10px;
        padding: 1.2rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;

        &:hover {
          transform: translateY(-5px);
          box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        }

        .forecast-card-date {
          color: #66b1ff;
          font-size: 0.9rem;
          margin-bottom: 0.5rem;
          letter-spacing: 0.02em;
        }

        .forecast-card-temp {
          font-size: 1.4rem;
          font-weight: 500;
          line-height: 1.4;
          display: flex;
          justify-content: center;
          align-items: center;

          .high-temp {
            color: #ff4d4f;
            margin-right: 0.5rem;
          }

          .low-temp {
            color: #000;
          }
        }
      }
    }
  }

  /* 选中预报样式 */
  .selected-forecast {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #d9e8ff;
    border-radius: 10px;
    color: #1890ff;
    animation: fadeIn 0.5s ease;

    h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      letter-spacing: 0.03em;
    }

    p {
      line-height: 1.6;
      margin: 0.5rem 0;

      .high-temp {
        color: #ff4d4f;
      }

      .low-temp {
        color: #000;
      }
    }
  }
}    
